<template>
	<div class="components-container">
        <!-- 功能列表 -->
        <!-- <el-dropdown @command="handleCommand" style="margin-bottom: 20px; float: right">
             <el-button type="danger">
                功能操作<i class="el-icon-caret-bottom el-icon--right"></i>
            </el-button>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item v-for="(item, index) in $store.state.btnListCommon" v-text="item.BTNSHOWNAME" :command="item.BTNSHOWNAME"
                    v-bind:data="$store.state.btnListCommon"
                    v-bind:key="item.BTNSHOWNAME"
                ></el-dropdown-item>
            </el-dropdown-menu>
        </el-dropdown> -->
         <div>
            <!-- <ul class="toolList">
                <li v-for="(item, index) in $store.state.btnListCommon" @click="toolList(item,index)">
                    <el-button type="primary" :value="item.BTNSHOWNAME" v-text="item.BTNSHOWNAME"></el-button>
                </li>
            </ul> -->

            <el-button type="primary" :value=" AddBtnMain " v-text="AddBtnMain" style="margin-bottom: 20px" @click="addIfo"></el-button>

        </div>
		编码管理 
	</div>


</template>
<style rel="stylesheet/scss" lang="scss" scoped>
    @import "src/styles/common.scss";

</style>
<script>
	export default {
        name: 'codingManage',
        data() {
            return {
                 AddBtnMain: null,
                modifyBtnMian: null,
                infoBtnMian: null,
                deleteBtnMian: null

            }
        },
        methods: {
             //详情
            infoList( index,row ) {

            },
            addIfo() {

            },
            // handleCommand(command) {//功能详情
            //     console.log( command )
            // },
            // selectList(selection, row){//Checkbox点击是触发
            //     console.log(selection)
            //     console.log(row)
            // },

        },
        mounted() {

            this.$store.state.btnListCommon.forEach( item => {
                    if( item.BTNSHOWNAME.indexOf('新增') === 0 ){
                        this.AddBtnMain = '新增'
                    }
                    if( item.BTNSHOWNAME == '修改' ) {
                        this.modifyBtnMian = '修改'
                    }


                    if( item.BTNSHOWNAME == '详情' ){
                        this.infoBtnMian = '详情'
                    }
                    if( item.BTNSHOWNAME == '删除' ){
                        this.deleteBtnMian = '删除'
                    }
             })
        },
        components: {

        },
        created() {

        }
    }
</script>